package com.weiqiao.api.repository.impl;

import com.weiqiao.api.repository.ITeamApiRepository;
import com.weiqiao.base.dao.impl.BaseMongoDaoImpl;
import org.bson.conversions.Bson;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ChenYF
 * @Description
 * @Date 2020/7/28 18:57
 */
@Repository("TeamApiRepositoryImpl")
public class TeamApiRepositoryImpl extends BaseMongoDaoImpl implements ITeamApiRepository {
    private final static String collectionName = "team_";

    @Override
    public String teamDtail(int company_id, Bson filter) {
        return this.findOne(collectionName + company_id, filter);
    }

    @Override
    public List<String> getTeamList(int company_id, Bson filter) {
        return super.findFilter(collectionName + company_id, filter);
    }
}
